﻿using System;
using System.Collections.Generic;
using Equation.Enterprise.Framework.Domain.Model;

namespace Equation.Enterprise.Tests.Framework.Domain.Model
{
    [Serializable]
    public class Product : Entity
    {
        public string ProductName { get; set; }
        public Category Category { get; set; }
        public IList<Order> Orders { get; set; }

        public Product(string name, Category category) : this()
        {
            ProductName = name;
            Category = category;
        }

        public Product()
        {
            Orders = new List<Order>();
        }
    }
}
